package org.tao.lightningmq.common.enums;

/**
 * @Author lht
 * @date 2025/1/7 - 20:14
 * @description:
 */
public enum NameServerEventCode {
    REGISTRY(1,"注册事件"),
    UN_REGISTRY(2,"下线事件"),
    HEART_BEAT(3,"心跳事件"),
    START_REPLICATION(4,"开启复制"),
    MASTER_START_REPLICATION_ACK(5,"master回应slave节点开启同步"),
    MASTER_REPLICATION_MSG(6,"主从同步数据"),
    SLAVE_HEART_BEAT(7,"从节点心跳数据"),
    SLAVE_REPLICATION_ACK_MSG(8,"从节点接收同步数据成功"),
    NODE_REPLICATION_MSG(9,"节点复制数据"),
    NODE_REPLICATION_ACK_MSG(10,"链式复制中数据同步成功信号"),
    PULL_BROKER_IP_LIST(11,"拉取broker的主节点ip地址"),
    ;

    final int code;
    final String desc;

    NameServerEventCode(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
